#ifndef AISAUDIORENDER_H
#define AISAUDIORENDER_H

#include <QWidget>
#include <QAudio>

QT_BEGIN_NAMESPACE
class QAudioOutput;
class QFile;
QT_END_MOC_NAMESPACE

class AISAudioRender : QWidget
{
    Q_OBJECT
public:
    explicit AISAudioRender(QWidget *parent = 0);
    bool play(const QString &filePath);
//    void pause();
//    void stop();

private slots:
    void handleStateChanged(QAudio::State newState);

private:
    QFile *audioFile;
    QAudioOutput *audioOutput;
};

#endif // AISAUDIORENDER_H
